/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_abstraction_pairCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;

    public T_dmap_abstraction_pairCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
    }

    public T_dmap_abstraction_pairCriteria(PersistentSession session) {
	this(session.createCriteria(T_dmap_abstraction_pair.class));
    }

    public T_dmap_abstraction_pairCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_dmap_abstract_objectsCriteria createAbstractCriteria() {
	return new T_dmap_abstract_objectsCriteria(createCriteria("Abstract"));
    }

    public T_dmap_typeCriteria createTypeCriteria() {
	return new T_dmap_typeCriteria(createCriteria("Type"));
    }

    public T_dmap_abstraction_pair uniqueT_dmap_abstraction_pair() {
	return (T_dmap_abstraction_pair) super.uniqueResult();
    }

    public T_dmap_abstraction_pair[] listT_dmap_abstraction_pair() {
	java.util.List list = super.list();
	return (T_dmap_abstraction_pair[]) list
		.toArray(new T_dmap_abstraction_pair[list.size()]);
    }
}
